package com.sinosoft.flow.web;

import com.sinosoft.flow.service.MyProcessService;
import io.swagger.annotations.Api;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletResponse;

/**
 * @Author: njz
 * @Description:
 * @Date: create in 2022/2/11 11:06
 */

@RequestMapping("/api/process")
@RestController
@Api("流程练习")
public class ProcessController {

    @Resource
    private MyProcessService myProcessService;

    @GetMapping("/process-view")
    public ResponseEntity<Void> test1(String proicessDefinitionId, HttpServletResponse response) throws Exception{
        myProcessService.getProcessView(proicessDefinitionId,response);
        return ResponseEntity.ok(null);
    }


}
